#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<list>
using namespace std;

void print(const list<int>& v)
{
	for (list<int>::const_iterator it = v.begin(); it != v.end(); it++)
	{
		cout << *it << " ";

	}
	cout << endl;
}
void test01()
{
	list<int>l1;
	l1.push_back(10);
	l1.push_back(20);
	l1.push_back(30);
	l1.push_back(40);
	print(l1);
	cout << l1.front() << endl;
}



int mian()
{
	test01();
	system("pause");
	return 0;
}